package com.runa.rccprotocol.dto;

import com.runa.protocol.dto.IRequestData;
import com.runa.protocol.dto.IResponseData;
import lombok.extern.slf4j.Slf4j;

/**
 * @author zhuj
 */
@Slf4j
public abstract class ConcentratorRequestData implements IRequestData<byte[]> {

    protected String address;

    private boolean haveResult;

    private Object remain;

    private Integer pauseTime;

    protected ConcentratorRequestData(String address) {
        this.address = address;
    }

    public String getAddress() {
        return address;
    }

    public boolean isHaveResult() {
        return haveResult;
    }

    public void setHaveResult(boolean haveResult) {
        this.haveResult = haveResult;
    }

    public Object getRemain() {
        return remain;
    }

    public void setRemain(Object remain) {
        this.remain = remain;
    }

    @Override
    public boolean isReadWrite() {
        return false;
    }

    @Override
    public short getTransSign() {
        return 0;
    }

    @Override
    public void setTransSign(short transSign) {

    }

    @Override
    public boolean check(IResponseData data) {
        return true;
    }

    public Integer getPauseTime() {
        return pauseTime;
    }

    public void setPauseTime(Integer pauseTime) {
        this.pauseTime = pauseTime;
    }
}
